package cn.edu.scau.cmi.chenbingquan.abstractFactory.factory;

import cn.edu.scau.cmi.chenbingquan.abstractFactory.domainAbstractClass.Meat;

// 抽象工厂
public abstract class AbstractFactory {
	
	// 返回相应的工厂
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
			case "Wens":
				return new WensFactory();
			case "Tianbang":
				return new TianbangFactory();
			case "Aonong":
				return new AonongFactory();
		}
		return null;
	}
	
	public abstract Meat createPork();
	public abstract Meat createChicken();
	public abstract Meat createBeef();
}
